#include<stdio.h>
int main(int argc, char const *argv[])
{
    int i;
    long long n, sum, sum1;
    sum = 0;
    sum1 = 1;
    scanf("%lld", &n);
    for ( i = 1; sum < n; i++)
    {
        sum1 = sum1 * i;
        sum = sum + sum1;
        if (sum>=n)
        {
            break;
        }
        
    }
    printf("m<=%d", i);

    return 0;
}